package edu.cuit.avatar.exception;

/**
 * 自定义业务逻辑异常
 *      Exception: 检查异常
 *      RuntimeException: 运行时异常(免检异常)
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/11 14:18
 */
public class IllegalRadiusException extends Exception{
    private float radius;

    public IllegalRadiusException(float radius) {
        //通过父类对应的构造方法初始化异常的message信息
        super("非法的半径:" + radius);
        this.radius = radius;
    }

    public float getRadius() {
        return radius;
    }
}
